var url = "http://hengzhi.ayvvv.com";
var serCmsData = localStorage.getItem('token');
setTimeout(function () {
    deList();
}, 200)
if(serCmsData==null){
    window.location.href="login.html";
}
function deList() {
    var delll = getUrlParam('delll');
    var pnoo = $("#pno_del").val();
    console.log(pnoo)
   
    $.ajax({
        url: url + '/api/user/address/delete/' + delll,
        type: 'post',
        data:{
            "pnoo": pnoo,
        },
        dataType: 'json',

        // data: data,
        async: true,
        headers: {
            "x-token": serCmsData
        },
        success: function (data) {
            if(data.status == 200){
                layer.msg("删除成功了");
            }else{
            }
        }
    });
};

